﻿@model IEnumerable<Game_MVC3.Models.News>
@using Game_MVC3.Code

@{
    ViewBag.Title = "Browser Game - Index";
    Layout = "~/Views/Layouts/_Index.cshtml";
}

<h1>
    <img src="@Href("~/Images/content-icons/home.png")" alt="Home" />
    Home
</h1>

@foreach (var item in Model) {
    <div class="news-box">
        <div class="news-header">
            <h2>@item.Title</h2>
            <h4>@Helper.ToNewsDate(item.Date)</h4>
        </div>
        <div class="news-body">
            @Html.Raw(item.Text)
        </div>
    </div>
}